﻿<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <CodeSnippet Format="1.0.0">
    <Header>
      <Title>repositoty</Title>
      <Author>Bruce</Author>
      <Description>Code snippet for an automatically implemented Repositoty</Description>
      <HelpUrl></HelpUrl>
      <SnippetTypes>
        <SnippetType>Expansion</SnippetType>
      </SnippetTypes>
      <Keywords />
      <Shortcut>dao</Shortcut>
    </Header>
    <Snippet>
      <References />
      <Imports />
      <Declarations>
        <Literal Editable="true">
          <ID>type</ID>
          <Type></Type>
          <ToolTip>Entity type</ToolTip>
          <Default>USRMAS</Default>
          <Function></Function>
        </Literal>
        <Literal Editable="true">
          <ID>name</ID>
          <Type></Type>
          <ToolTip>Repositoty name</ToolTip>
          <Default>MyRepositoty</Default>
          <Function></Function>
        </Literal>
      </Declarations>
      <Code Language="csharp" Kind="" Delimiter="$"><![CDATA[        	private IRepository<$type$ > _$name$Dao;
        	public IRepository<$type$> $name$Dao
        	{
            		get
            		{
                		if (_$name$Dao == null)
				{
                    			_$name$Dao = this.CreateRepository<$type$>();
				}
                		return _$name$Dao;
            		}
            		set
            		{
                		_$name$Dao = value;
            		}
        	}$end$]]></Code>
    </Snippet>
  </CodeSnippet>
</CodeSnippets>